package com.dhcc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.entity.SysInstitutionInstitutionRole;
import com.dhcc.mapper.SysInstitutionInstitutionRoleMapper;
import com.dhcc.service.SysInstitutionInstitutionRoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysInstitutionInstitutionRoleServiceImpl extends ServiceImpl<SysInstitutionInstitutionRoleMapper, SysInstitutionInstitutionRole> implements SysInstitutionInstitutionRoleService {
    @Resource
    private SysInstitutionInstitutionRoleMapper sysInstitutionInstitutionRoleMapper;
    @Override
    public String getInstitutionRoles(String institutionId) {
        String institutionIds =sysInstitutionInstitutionRoleMapper.getInstitutionRoleIds(institutionId);
        return institutionIds;
    }

    @Override
    public Integer addData(String institutionId, String institutionRoleId) {
        return sysInstitutionInstitutionRoleMapper.addData(institutionId,institutionRoleId);
    }

    @Override
    public Integer deleteData(String institutionId) {
        return sysInstitutionInstitutionRoleMapper.deleteData(institutionId);
    }
}
